<%--
  Created by IntelliJ IDEA.
  User: 李文文
  Date: 2020/10/7
  Time: 17:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false"%>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="page-header" >
    <h2>
        <small style="margin-left: 36px;">流动人口管理系统</small>
        <a   id="link1" href="${pageContext.request.contextPath}/firstPage" style="margin-left: 800px;font-size: 15px; color: #888888">首页</a>
        <a  id="link2" href="${pageContext.request.contextPath}/child" style="margin-left: 20px;font-size: 15px; color: #888888">子女信息</a>
        <a id="link3" href="${pageContext.request.contextPath}/externalPopulation" style="margin-left: 20px;font-size: 15px; color: #888888">流动人口</a>
        <a id="link4" href="${pageContext.request.contextPath}/residentialPass"  style="margin-left: 20px;font-size: 15px; color: #888888">登记信息</a>
    </h2>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <ul class="breadcrumb" style="margin-top: 20px;">
                <li>
                    <a href="${pageContext.request.contextPath}/firstPage">主页</a> <span class="divider">/</span>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/child#student">子女信息</a> <span class="divider">/</span>
                </li>
                <li class="active">
                    修改子女信息
                </li>
            </ul>
        </div>
    </div>
</div>

<div class="container">
    <div class="modal fade" id="myModal" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="alert alert-danger fade in">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                <strong>错误</strong>${addStudent}！
            </div>
        </div>
    </div>
    <div style="text-align: center;"><h3>添加子女信息页面</h3></div>
    <form action="/student/addS" method="post">
                <div class="form-group">
                    <label for="name">姓名：</label>
                    <input type="text" class="form-control" id="name" name="name"></br>
                </div>

                <div class="form-group">
                    <label for="ID_number">身份证号：</label>
                    <input type="text" class="form-control" id="ID_number" name="ID_number" ></br>
                </div>

                <div class="form-group">
                    <label for="school">就读学校：</label>
                    <input type="text" class="form-control" id="school" name="school"></br>
                </div>
                <div class="form-group" style="text-align: center">
                    <input type="submit" class="btn btn-primary" value="添加"><br/>
                </div>
    </form>
</div>
</body>
</html>

<script>


    if (${addStudent!=null}) {
        $('#myModal').modal();
    }

</script>
